﻿//  Copyright (c) 2011 Ray Liang (http://www.dotnetage.com)
//  Licensed MIT: http://www.opensource.org/licenses/mit-license.php
using System.ComponentModel.DataAnnotations;

namespace DNA.Mvc
{
    [Table("dna_WebPageRoles")]
    public class WebPageRole
    {
        [Key ]
        [Column(Order=1)]
        public int PageID { get; set; }

        [Key]
        [Column(Order = 2)]
        public string RoleName { get; set; }

        [ForeignKey("PageID")]
        public virtual WebPage WebPage { get; set; }
    }
}
